package biz.yfsoft.app.aengine.api;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by CoderA on 2016/7/3.
 */
public class AEParam {
    private Map<String,Object> _map = null;
    public AEParam(){
        _map = new HashMap<String,Object>();
    }

    public AEParam set(String k,Object v){
        _map.put(k,v);
        return this;
    }

    public String toJSONString(){
        if(_map.size()<1){
            return "{}";
        }
        JSONObject _jo = new JSONObject();
        _jo.putAll(_map);
        return _jo.toJSONString();
    }
}
